package com.suda.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/****
 * @Author:zhuyongjie
 * @Description:Store构建
 * @Date 2019/6/14 19:13
 *****/
@Table(name="t_store")
public class Store implements Serializable{

	@Id
    @Column(name = "store_id")
	private String storeId;//存储流水号

    @Column(name = "order_id")
	private String orderId;//订单id

    @Column(name = "warehouse_id")
	private String warehouseId;//仓库id

    @Column(name = "store_status")
	private String storeStatus;//存储状态

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    @Column(name = "store_time")
	private Date storeTime;//入库时间

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    @Column(name = "deliver_time")
	private Date deliverTime;//出库时间



	//get方法
	public String getStoreId() {
		return storeId;
	}

	//set方法
	public void setStoreId(String storeId) {
		this.storeId = storeId;
	}
	//get方法
	public String getOrderId() {
		return orderId;
	}

	//set方法
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	//get方法
	public String getWarehouseId() {
		return warehouseId;
	}

	//set方法
	public void setWarehouseId(String warehouseId) {
		this.warehouseId = warehouseId;
	}
	//get方法
	public String getStoreStatus() {
		return storeStatus;
	}

	//set方法
	public void setStoreStatus(String storeStatus) {
		this.storeStatus = storeStatus;
	}
	//get方法
	public Date getStoreTime() {
		return storeTime;
	}

	//set方法
	public void setStoreTime(Date storeTime) {
		this.storeTime = storeTime;
	}
	//get方法
	public Date getDeliverTime() {
		return deliverTime;
	}

	//set方法
	public void setDeliverTime(Date deliverTime) {
		this.deliverTime = deliverTime;
	}

	@Override
	public String toString() {
		return "Store{" +
				"storeId='" + storeId + '\'' +
				", orderId='" + orderId + '\'' +
				", warehouseId='" + warehouseId + '\'' +
				", storeStatus='" + storeStatus + '\'' +
				", storeTime=" + storeTime +
				", deliverTime=" + deliverTime +
				'}';
	}
}
